package com.faithbj.common.utils;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.faithbj.common.dao.DictionaryDao;
import com.faithbj.common.model.Dictionary;

/**
 * @author jrn E-mail: rinanjin@gmail.com
 * @version 0.1 
 * 创建时间：2012-6-29 下午09:21:20
 * 类说明
 */
@Component("dictionaryUtil")
@Transactional
public class DictionaryUtil
{
	@Resource
	private DictionaryDao dictionaryDao;
	
	/**
	 * 通过类型名称获取字典列表
	 * 
	 * @param typeName 类型名称
	 * 
	 * @return
	 */
	@Transactional(readOnly=true)
	public List<Dictionary> getListByTypeName(String typeName)
	{
		return dictionaryDao.getListByTypeName(typeName);
	}

}
